package com.offcn.webui.service;

import com.offcn.dycommon.response.AppResponse;
import com.offcn.webui.config.FeignConfig;
import com.offcn.webui.service.impl.ProjectServiceFeignImpl;
import com.offcn.webui.vo.resp.ProjectDetailVo;
import com.offcn.webui.vo.resp.ProjectReturnVo;
import com.offcn.webui.vo.resp.ProjectVo;
import com.offcn.webui.vo.resp.ReturnPayConfirmVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;
@FeignClient(value = "SCW-PROJECT",configuration = FeignConfig.class,fallback = ProjectServiceFeignImpl.class)
public interface ProjectServiceFeign {
    @GetMapping("/project/all")
    public AppResponse<List<ProjectVo>> all();


    //查询指定项目的详情信息
    @GetMapping("/project/details/info/{projectId}")
    public AppResponse<ProjectDetailVo> detail(@PathVariable("projectId") Integer projectId);

    //获取指定项目回报信息
    @GetMapping("/project/returns/info/{returnId}")
    public AppResponse<ReturnPayConfirmVo> returnInfo(@PathVariable("returnId") Integer returnId);
}
